package com.example.demo.pojo.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
public class Comment {
    private Long id;
    private Long parentId;
    private Long replyId;
    private Long fromId;
    private Long itemId;
    private String content;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public Comment() {
    }

    public Comment(Long id, Long parentId, Long replyId, Long fromId, Long itemId, String content, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.parentId = parentId;
        this.replyId = replyId;
        this.fromId = fromId;
        this.itemId = itemId;
        this.content = content;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
